package com.heima.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdSensitiveService extends IService<AdSensitive> {
    /**
     * 敏感词分页查询
     * @param sensitiveDTO
     * @return
     */
    ResponseResult findByNameAndPage(SensitiveDTO sensitiveDTO);

    /**
     * 添加
     * @param ads
     * @return
     */
    ResponseResult insertAdsensitive(AdSensitive ads);

    /**
     * 修改
     * @param ads
     * @return
     */
    ResponseResult updateAdsensitive(AdSensitive ads);

    /**
     * 删除
     * @param id
     * @return
     */
    ResponseResult deleteAdsensitive(Integer id);

    ResponseResult<List<String>> selectAllSensitive();
}